package com.hh.web.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hh.web.Model.UmsAdmin;
import com.hh.web.Dao.UmsAdminDao;
import com.hh.web.Service.AdminService;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private UmsAdminDao adminDao;

    @Override
    public UmsAdmin login(UmsAdmin umsAdmin) {
        return this.adminDao.selectByUsernameAndPassword(umsAdmin);
    }
}
